/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BUSServices;

import DAOServices.QLNHSDAOServices_Service;
import java.util.List;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.xml.ws.WebServiceRef;

/**
 *
 * @author USER
 */
@WebService(serviceName = "QLNS_BUS_WebService")
public class QLNS_BUS_WebService {

    @WebServiceRef(wsdlLocation = "WEB-INF/wsdl/localhost_8080/QLNS_DAO_WS/QLNHS_DAO_Services.wsdl")
    private QLNHSDAOServices_Service service;

    @WebMethod(operationName = "laySach")
    public java.util.List<DAOServices.Sach> laySach(java.lang.String mySQL) {
        DAOServices.QLNHSDAOServices port = service.getQLNHSDAOServicesPort();
        return port.laySach(mySQL);
    }

    @WebMethod(operationName = "layNhaxuatBan")
    public java.util.List<DAOServices.NhaXuatBan> layNhaXuatBan(java.lang.String mySQL) {
        DAOServices.QLNHSDAOServices port = service.getQLNHSDAOServicesPort();
        return port.layNhaXuatBan(mySQL);
    }

    @WebMethod(operationName = "layTheLoai")
    public java.util.List<DAOServices.TheLoai> layTheLoai(java.lang.String mySQL) {
        DAOServices.QLNHSDAOServices port = service.getQLNHSDAOServicesPort();
        return port.layTheLoai(mySQL);
    }

    @WebMethod(operationName = "themSach")
    public boolean themSach(DAOServices.Sach sach) {
        DAOServices.QLNHSDAOServices port = service.getQLNHSDAOServicesPort();
        return port.themSach(sach);
    }

    @WebMethod(operationName = "themSachGiaoKhoa")
    public boolean themSachGiaoKhoa(DAOServices.Sach sach) {
        DAOServices.QLNHSDAOServices port = service.getQLNHSDAOServicesPort();
        return port.themSachGiaoKhoa(sach);
    }

    @WebMethod(operationName = "themHoaDon")
    public int themHoaDon(DAOServices.HoaDon hoaDon) {
        DAOServices.QLNHSDAOServices port = service.getQLNHSDAOServicesPort();
        return port.themHoaDon(hoaDon);
    }

    @WebMethod(operationName = "themChiTietHoaDon")
    public boolean themChiTietHoaDon(DAOServices.ChiTietHoaDon cthd) {
        DAOServices.QLNHSDAOServices port = service.getQLNHSDAOServicesPort();
        return port.themChiTietHoaDon(cthd);
    }

    @WebMethod(operationName = "capNhatSachThuong")
    public boolean capNhatSachThuong(DAOServices.Sach sach) {
        DAOServices.QLNHSDAOServices port = service.getQLNHSDAOServicesPort();
        return port.capNhatSachThuong(sach);
    }

    @WebMethod(operationName = "capNhatSachGiaoKhoa")
    public boolean capNhatSachGiaoKhoa(DAOServices.Sach sach) {
        DAOServices.QLNHSDAOServices port = service.getQLNHSDAOServicesPort();
        return port.capNhatSachGiaoKhoa(sach);
    }
}
